home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Ebooks / Thinking in C++ V2 / CXX / egcs.makefile < prev    next >
Encoding:
Makefile  |  2000-05-25  |  724 b   |  36 lines

  1. # From Thinking in C++, 2nd Edition
  2. # At http://www.BruceEckel.com
  3. # (c) Bruce Eckel 1999
  4. # Copyright notice in Copyright.txt
  5. # Automatically-generated MAKEFILE 
  6. # For examples in directory CXX
  7. # using the egcs compiler
  8. # Note: does not make files that will 
  9. # not compile with this compiler
  10. # Invoke with: make -f egcs.makefile
  11.  
  12. CPP = g++
  13. OFLAG = -o
  14. .SUFFIXES : .o .cpp .c
  15. .cpp.o :
  16.     $(CPP) $(CPPFLAGS) -c $<
  17. .c.o :
  18.     $(CPP) $(CPPFLAGS) -c $<
  19.  
  20. all: \
  21.     BikeTest 
  22.  
  23. test: all 
  24.     BikeTest  
  25.  
  26. bugs: 
  27.     @echo No compiler bugs in this directory!
  28.  
  29. BikeTest: BikeTest.o Bicycle.o 
  30.     $(CPP) $(OFLAG)BikeTest BikeTest.o Bicycle.o 
  31.  
  32.  
  33. Bicycle.o: Bicycle.cpp Bicycle.h 
  34. BikeTest.o: BikeTest.cpp Bicycle.h 
  35.  
  36.